<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:insert="~{include :: header('新增需求优先级')}" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-priorities-add">
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">优先级名称：</label>
                    <div class="col-sm-8">
                        <input name="name" class="form-control" type="text" required>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">是否可用：</label>
                    <div class="col-sm-8">
                        <input name="active" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">是否默认优先级：</label>
                    <div class="col-sm-8">
                        <input name="isDefault" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
				<div class="form-group">
					<label class="col-sm-3 control-label">回显样式：</label>
					<div class="col-sm-8">
						<select name="listClass" class="form-control m-b">
						    <option value="">---请选择---</option>
				            <option value="default">默认</option>
				            <option value="primary">主要</option>
				            <option value="success">成功</option>
				            <option value="info">   信息</option>
				            <option value="warning">警告</option>
				            <option value="danger"> 危险</option>
				        </select>
				        <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> table表格字典列显示样式属性</span>
					</div>
				</div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">状态颜色：</label>
                    <div class="col-sm-8">
                        <input name="htmlColor" class="form-control jscolor" type="text" id="htmlColor" data-jscolor="{}">
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:insert="~{include :: footer}" />
	<script th:src="@{/ajax/libs/jscolor/jscolor.min.js}"></script>
    <script th:inline="javascript">
        var prefix = ctx + "project/prioritie"
        $("#form-priorities-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-priorities-add').serialize());
            }
        }
    </script>
</body>
</html>